<template>
		<view class="container">
			<view class="item">
				<image src="/static/demo/paper.webp" mode="widthFix" class="img"></image>
				<button type="primary" size="mini" class="btn" @click="downloadImg">下载</button>
			</view>
		</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {};
		},
		methods: {
			downloadImg() {
				console.log('执行click事件')
			},
		}
	};
</script>

<style lang="scss">
.container{
	.item{
		display:flex;
		align-items: center;
		justify-content: center;
		flex-direction:column‌ ;
		flex-direction: column;
		padding: 40rpx 40rpx 20rpx 40rpx;
		background-color: #fff;
		margin: 30rpx 30rpx;
		border-radius: 8rpx;
		box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
	}
	.img{
		height: 300rpx;
	}
	.btn{
		margin: 30rpx 0;
	}
}
</style>
